package com.example.persion.util;


import com.example.persion.Shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

public class ShiroUtil {

    public static AccountProfile  getProfile(){


        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
